<template>
  <el-container class="full_box">
    <el-header>
      <el-select v-model="selectId" filterable placeholder="请选择" class="form-button">
        <el-option
            v-for="item in studentList"
            :key="item.studentId"
            :label="item.name"
            :value="item.studentId">
        </el-option>
      </el-select>
    </el-header>
    <el-main>
      <grade-table :student-id="selectId"></grade-table>
    </el-main>
  </el-container>
</template>

<script>
//测试数据
//import {teacherStaticData} from "@/js/testConfig.mjs";


import GradeTable from "@/components/teacher/mianView/gradeManger/GradeTable";
export default {
  name: "GradeManger",
  components: {GradeTable},
  data() {
    return {
      selectId: '',
      //元数据
      //metaData:teacherStaticData
    }
  },
  computed:{
    studentList:function (){
      return this.$store.state.teacher_studentData.studentList
    }
  },

}
</script>

<style scoped>
.form-button{
  margin: 20px;
}
</style>